package sqlToGUI.sqlRetrievalAlgorithms.car;


import java.sql.SQLException;
import java.sql.Timestamp;

import sqlToGUI.charts.helperUtilities.TelemetryDataEntry;
import sqlToGUI.sqlRetrievalAlgorithms.AbstractDataRetrievalAlgorithm;
import sqlToGUI.sqlRetrievalAlgorithms.SQLDataRetrievalAlgorithm;


public class Alg_CarDistTravelled extends AbstractDataRetrievalAlgorithm  
	implements SQLDataRetrievalAlgorithm {

	private int counter = 0;
	
	/**Class constructor */
	public Alg_CarDistTravelled(TelemetryDataEntry[] list){
		super();
		this.list = list;
	}
	
	/**Access the database and update data in the buffer */
	public void updateData(){
		
		/**Test data */
		list[0].updateData(0, counter);
		counter = counter+100;
		/**End of test data */
	}
}
